package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * SysOrg generated by hbm2java
 */
@Entity
@Table(name="sys_org"
    ,catalog="lmis"
    , uniqueConstraints = @UniqueConstraint(columnNames="ORG_CODE") 
)
public class SysOrg  implements java.io.Serializable {


     private Short orgNo;
     private Short orgTypeNo;
     private String orgCode;
     private String orgName;
     private Short baseOrgNo;
     private String addrNo;
     private Short addrMoo;
     private String addrBuilding;
     private String addrSoi;
     private String addrRoad;
     private String addr1;
     private Integer addr2No;
     private Integer addr3No;
     private Short addr4No;
     private String addr5;
     private String phoneNo;
     private String mobileNo;
     private Short mgrNo;
     private String cerVatReg;
     private Set<SysSeqAccJnSp> sysSeqAccJnSps = new HashSet<SysSeqAccJnSp>(0);
     private Set<SysSeqSaleLoanContract> sysSeqSaleLoanContracts = new HashSet<SysSeqSaleLoanContract>(0);
     private Set<SysUserLogin> sysUserLogins = new HashSet<SysUserLogin>(0);
     private Set<SaleLoanContract> saleLoanContracts = new HashSet<SaleLoanContract>(0);
     private Set<SaleLoanOffer> saleLoanOffers = new HashSet<SaleLoanOffer>(0);
     private Set<SysUserLogin> sysUserLogins_1 = new HashSet<SysUserLogin>(0);
     private Set<SysSeqFinTrans> sysSeqFinTranses = new HashSet<SysSeqFinTrans>(0);

    public SysOrg() {
    }

    public SysOrg(Short orgTypeNo, String orgCode, String orgName, Short baseOrgNo, String addrNo, Short addrMoo, String addrBuilding, String addrSoi, String addrRoad, String addr1, Integer addr2No, Integer addr3No, Short addr4No, String addr5, String phoneNo, String mobileNo, Short mgrNo, String cerVatReg, Set<SysSeqAccJnSp> sysSeqAccJnSps, Set<SysSeqSaleLoanContract> sysSeqSaleLoanContracts, Set<SysUserLogin> sysUserLogins, Set<SaleLoanContract> saleLoanContracts, Set<SaleLoanOffer> saleLoanOffers, Set<SysUserLogin> sysUserLogins_1, Set<SysSeqFinTrans> sysSeqFinTranses) {
       this.orgTypeNo = orgTypeNo;
       this.orgCode = orgCode;
       this.orgName = orgName;
       this.baseOrgNo = baseOrgNo;
       this.addrNo = addrNo;
       this.addrMoo = addrMoo;
       this.addrBuilding = addrBuilding;
       this.addrSoi = addrSoi;
       this.addrRoad = addrRoad;
       this.addr1 = addr1;
       this.addr2No = addr2No;
       this.addr3No = addr3No;
       this.addr4No = addr4No;
       this.addr5 = addr5;
       this.phoneNo = phoneNo;
       this.mobileNo = mobileNo;
       this.mgrNo = mgrNo;
       this.cerVatReg = cerVatReg;
       this.sysSeqAccJnSps = sysSeqAccJnSps;
       this.sysSeqSaleLoanContracts = sysSeqSaleLoanContracts;
       this.sysUserLogins = sysUserLogins;
       this.saleLoanContracts = saleLoanContracts;
       this.saleLoanOffers = saleLoanOffers;
       this.sysUserLogins_1 = sysUserLogins_1;
       this.sysSeqFinTranses = sysSeqFinTranses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)

    
    @Column(name="ORG_NO", unique=true, nullable=false)
    public Short getOrgNo() {
        return this.orgNo;
    }
    
    public void setOrgNo(Short orgNo) {
        this.orgNo = orgNo;
    }

    
    @Column(name="ORG_TYPE_NO")
    public Short getOrgTypeNo() {
        return this.orgTypeNo;
    }
    
    public void setOrgTypeNo(Short orgTypeNo) {
        this.orgTypeNo = orgTypeNo;
    }

    
    @Column(name="ORG_CODE", unique=true, length=5)
    public String getOrgCode() {
        return this.orgCode;
    }
    
    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    
    @Column(name="ORG_NAME", length=100)
    public String getOrgName() {
        return this.orgName;
    }
    
    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    
    @Column(name="BASE_ORG_NO")
    public Short getBaseOrgNo() {
        return this.baseOrgNo;
    }
    
    public void setBaseOrgNo(Short baseOrgNo) {
        this.baseOrgNo = baseOrgNo;
    }

    
    @Column(name="ADDR_NO", length=50)
    public String getAddrNo() {
        return this.addrNo;
    }
    
    public void setAddrNo(String addrNo) {
        this.addrNo = addrNo;
    }

    
    @Column(name="ADDR_MOO")
    public Short getAddrMoo() {
        return this.addrMoo;
    }
    
    public void setAddrMoo(Short addrMoo) {
        this.addrMoo = addrMoo;
    }

    
    @Column(name="ADDR_BUILDING", length=100)
    public String getAddrBuilding() {
        return this.addrBuilding;
    }
    
    public void setAddrBuilding(String addrBuilding) {
        this.addrBuilding = addrBuilding;
    }

    
    @Column(name="ADDR_SOI", length=50)
    public String getAddrSoi() {
        return this.addrSoi;
    }
    
    public void setAddrSoi(String addrSoi) {
        this.addrSoi = addrSoi;
    }

    
    @Column(name="ADDR_ROAD", length=50)
    public String getAddrRoad() {
        return this.addrRoad;
    }
    
    public void setAddrRoad(String addrRoad) {
        this.addrRoad = addrRoad;
    }

    
    @Column(name="ADDR1", length=100)
    public String getAddr1() {
        return this.addr1;
    }
    
    public void setAddr1(String addr1) {
        this.addr1 = addr1;
    }

    
    @Column(name="ADDR2_NO")
    public Integer getAddr2No() {
        return this.addr2No;
    }
    
    public void setAddr2No(Integer addr2No) {
        this.addr2No = addr2No;
    }

    
    @Column(name="ADDR3_NO")
    public Integer getAddr3No() {
        return this.addr3No;
    }
    
    public void setAddr3No(Integer addr3No) {
        this.addr3No = addr3No;
    }

    
    @Column(name="ADDR4_NO")
    public Short getAddr4No() {
        return this.addr4No;
    }
    
    public void setAddr4No(Short addr4No) {
        this.addr4No = addr4No;
    }

    
    @Column(name="ADDR5", length=10)
    public String getAddr5() {
        return this.addr5;
    }
    
    public void setAddr5(String addr5) {
        this.addr5 = addr5;
    }

    
    @Column(name="PHONE_NO", length=20)
    public String getPhoneNo() {
        return this.phoneNo;
    }
    
    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    
    @Column(name="MOBILE_NO", length=20)
    public String getMobileNo() {
        return this.mobileNo;
    }
    
    public void setMobileNo(String mobileNo) {
        this.mobileNo = mobileNo;
    }

    
    @Column(name="MGR_NO")
    public Short getMgrNo() {
        return this.mgrNo;
    }
    
    public void setMgrNo(Short mgrNo) {
        this.mgrNo = mgrNo;
    }

    
    @Column(name="CER_VAT_REG", length=50)
    public String getCerVatReg() {
        return this.cerVatReg;
    }
    
    public void setCerVatReg(String cerVatReg) {
        this.cerVatReg = cerVatReg;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysOrg")
    public Set<SysSeqAccJnSp> getSysSeqAccJnSps() {
        return this.sysSeqAccJnSps;
    }
    
    public void setSysSeqAccJnSps(Set<SysSeqAccJnSp> sysSeqAccJnSps) {
        this.sysSeqAccJnSps = sysSeqAccJnSps;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysOrg")
    public Set<SysSeqSaleLoanContract> getSysSeqSaleLoanContracts() {
        return this.sysSeqSaleLoanContracts;
    }
    
    public void setSysSeqSaleLoanContracts(Set<SysSeqSaleLoanContract> sysSeqSaleLoanContracts) {
        this.sysSeqSaleLoanContracts = sysSeqSaleLoanContracts;
    }

@ManyToMany(fetch=FetchType.LAZY, mappedBy="sysOrgs")
    public Set<SysUserLogin> getSysUserLogins() {
        return this.sysUserLogins;
    }
    
    public void setSysUserLogins(Set<SysUserLogin> sysUserLogins) {
        this.sysUserLogins = sysUserLogins;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysOrg")
    public Set<SaleLoanContract> getSaleLoanContracts() {
        return this.saleLoanContracts;
    }
    
    public void setSaleLoanContracts(Set<SaleLoanContract> saleLoanContracts) {
        this.saleLoanContracts = saleLoanContracts;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysOrg")
    public Set<SaleLoanOffer> getSaleLoanOffers() {
        return this.saleLoanOffers;
    }
    
    public void setSaleLoanOffers(Set<SaleLoanOffer> saleLoanOffers) {
        this.saleLoanOffers = saleLoanOffers;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysOrg")
    public Set<SysUserLogin> getSysUserLogins_1() {
        return this.sysUserLogins_1;
    }
    
    public void setSysUserLogins_1(Set<SysUserLogin> sysUserLogins_1) {
        this.sysUserLogins_1 = sysUserLogins_1;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="sysOrg")
    public Set<SysSeqFinTrans> getSysSeqFinTranses() {
        return this.sysSeqFinTranses;
    }
    
    public void setSysSeqFinTranses(Set<SysSeqFinTrans> sysSeqFinTranses) {
        this.sysSeqFinTranses = sysSeqFinTranses;
    }




}


